package com.taxi.driver.module.vo;


import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.annotation.JSONField;
import com.taxi.driver.data.entity.CommentEntity;

public class CommentVO {
    public static CommentVO createFrom(CommentEntity entity) {
        if (entity == null) return new CommentVO();
        String strJson = JSON.toJSONString(entity);
        return JSON.parseObject(strJson, CommentVO.class);
    }

    @JSONField(name = "content")
    public String content;//评价内容

    @JSONField(name = "createTime")
    public long date;//评价日期
}
